package com.lanhe.app.controller.banner;


import com.lanhe.banner.domian.LhBanner;
import com.lanhe.banner.service.ILhBannerService;
import com.lanhe.common.core.controller.BaseController;
import com.lanhe.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * banner图管理(LhBanner)表控制层
 *
 * @author zhanggl
 * @since 2023-12-30 13:58:55
 */
@RestController
@RequestMapping("/api/banner")
public class ApiBannerController extends BaseController {

    /**
     * 服务对象
     */
    @Resource
    private ILhBannerService lhBannerService;

    /**
     * 分页查询所有数据
     */
    @GetMapping("/list")
    public AjaxResult list(LhBanner banner) {
        List<LhBanner> list = lhBannerService.selectBannerList(banner);
        return success(list);
    }

}

